﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using PPI.Entities;
using PPI.Entities.Lookup;
using VMind.Global;

namespace PPI.Client.Logic
{
    public class LXMissionStructures_PoleClass 
    {
        public static List<EXMissionStructures_PoleClass> SelectAllIdName()
        {
            List<EXMissionStructures_PoleClass> _returnList = new List<EXMissionStructures_PoleClass>();
            DataTable dt = WebConsumer.WXMissionStructures_PoleClass.SelectAllIdName().Tables[0];
            foreach (DataRow dr in dt.Rows)
            {
                EXMissionStructures_PoleClass c = new EXMissionStructures_PoleClass();
                c.Id = ConvertHelper.ToInt32(dr["XMissionStructures_PoleClassId"]);
                c.Name = dr["Name"].ToString();
                _returnList.Add(c);

            }
            return _returnList;
        }
       
    }
}
